sh_test(
    name = "override_test",
    srcs = ["override_test.sh"],
    data = [":simple_cat"],
    env = {"SIMPLE_CAT": "$(rlocationpath :simple_cat)"},
    deps = ["@bazel_tools//tools/bash/runfiles"],
)

cc_binary(
    name = "simple_cat",
    srcs = ["simple_cat.c"],
    malloc = "@mimalloc",
)

cc_test(
    name = "api_test",
    srcs = ["api_test.c"],
    malloc = "@mimalloc",
    deps = [
        "@mimalloc//:mimalloc-api",
        "@mimalloc//:mimalloc-stats",
    ],
)
